package com.pinda.feign;

import com.github.pagehelper.PageInfo;
import com.pinda.base.vo.TruckDriverTheTruckMessageVo;
import com.pinda.commonutils.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "aggregation-service",url = "http://localhost:2001",path = "/pd-truck-driver")
public interface TruckDriverFeign {

    @RequestMapping("/queryPageTruckDriver")
    PageInfo queryPageTruckDriver(@RequestBody Page page);


    @RequestMapping("/queryTruckDriverTheTruckMessage/{id}")
    public TruckDriverTheTruckMessageVo queryTruckDriverTheTruckMessage(@PathVariable("id")String id);
}
